package com.zsrt.java.day20170112.lh.homework;

import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;

import org.junit.Test;

public class OutputStreamWriterTest {
	
	@Test
	public void testName() throws Exception {
		
		File f=new File("c:/A.txt");
		
		OutputStreamWriter osw=new OutputStreamWriter(new FileOutputStream(f),"utf-8");
		
		String st="asdaJDK卡死到哪卡视角开发";
		
		
		osw.write(st);
		osw.close();
	
		
	}

}
